package servers;

import java.io.BufferedReader;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;

public class TestImage {


    public static void main(String[] args) throws Exception	{
	//post this data to app controller at appDir
    	
    	
    	String cmd[] = {"java", "-cp", "c:\\workspace\\dragon\\bin;c:\\javalib\\javacv-bin\\javacpp.jar;c:\\javalib\\javacv-bin\\javacv.jar;c:\\javalib\\javacv-windows-x86.jar", "utilities.TakePicture"};

    	Process p = Runtime.getRuntime().exec(cmd);

    	BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
    	
		String l = null;
		while((l=in.readLine())!=null){
			System.out.println(l);
		}
		p.destroy();
		Thread.sleep(1000);
}
}
